package com.starryx.sim.mvc.lifecycle;


public class LifecycleWrapper implements Comparable<LifecycleWrapper> {

	private Lifecycle lifecycle;

	private int priority;

	public LifecycleWrapper(Lifecycle lifecycle, int priority) {
		this.lifecycle = lifecycle;
		this.priority = priority;
	}

	public Lifecycle getLifecycle() {
		return lifecycle;
	}

	public int getPriority() {
		return priority;
	}

	@Override
	public int compareTo(LifecycleWrapper o) {
		return Integer.compare(this.priority, o.priority);
	}

}
